package bean;

import javax.jdo.PersistenceManager;

import pmf.PMF;

public class ParticipateAdm {
	public Participate addPart(Member m, int amount){
		
		PersistenceManager pm = PMF.get().getPersistenceManager();
		try{
			Participate p = new Participate(null, m, amount);		
			Participate tempP = pm.makePersistent(p);
			//Participate tempP = new Participate(p.getKey(), p.getAddMem(), p.getNeedAmount());
			
			return tempP;
			
		}finally{
			pm.close();
		}      
	}
}
